﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupGLSizebox</title>

<link rel="stylesheet" type="text/css" href="../../style.css">
<style type="text/css">
.style1 {
	font-size: large;
}
</style>
</head>
<body>
<div id="navigation">
  <ul>
    <li><a href="#Creation">Creation</a></li>
    <li><a href="#Attributes">Attributes</a></li>
    <li><a href="#Callbacks">Callbacks</a></li>
    <li><a href="#Notes">Notes</a></li>
    <li><a href="#Examples">Examples</a></li>
    <li><a href="#SeeAlso">See Also</a></li>
  </ul>
</div>

<h2>IupGLSizebox<span class="style1"> (since 3.11)</span></h2>
<p>Creates a void container that allows its child to be resized. Allows 
expanding and contracting the child <strong>size</strong> in one 
or two directions. It inherits from <a href="iupglsubcanvas.html">IupGLSubCanvas</a>. It exists only 
  inside an
<a href="iupglcanvasbox.html">IupGLCanvasBox</a>.</p>

<h3><a name="Creation">Creation</a></h3>

<pre>Ihandle* IupGLSizebox(Ihandle*<strong> child</strong>); [in C]
iup.glsizebox{<strong>child</strong>: ihandle} -&gt; (<strong>elem</strong>: ihandle) [in Lua]
glsizebox(<strong>child</strong>) [in LED]</pre>
  <p><strong>child</strong>: Identifier of an interface element which will 
  receive the box. It can be NULL (nil in Lua), or empty in LED.</p>
  <p>
  <u>Returns:</u> the identifier of the 
  created element, or NULL if an error occurs.</p>

<h3><a name="Attributes">Attributes</a></h3>


<p>The 
  <strong>IupGLScrollBox</strong> element handle all attributes defined for a
<a href="iupglsubcanvas.html">IupGLSubCanvas</a> control.</p>
<blockquote>
  <hr>
</blockquote>



<p><strong>FORECOLOR</strong>: Changes the color of the
  bar handler. Default: &quot;192 192 192&quot;.</p>


<p><strong>RESIZERS</strong>: Indicates the direction of the 
resize. Possible values are &quot;VERTICAL&quot;, &quot;HORIZONTAL&quot;, or &quot;BOTH&quot;. Default: &quot;BOTH&quot;. 
The handler is always placed at the right/bottom of its child.</p>



<p><a href="../attrib/iup_expand.html">EXPAND</a> (<font SIZE="3">non inheritable</font>):
  The default value is &quot;YES&quot;.</p>

  <blockquote>
    <hr>
</blockquote>

  <p>
  <a href="../attrib/iup_clientsize.html">CLIENTSIZE</a>, 
	<a href="../attrib/iup_clientoffset.html">CLIENTOFFSET</a>: 
also accepted.</p>

<h3>Notes</h3>
<p>The control inside the <strong>IupGLSizeBox</strong> will have its <strong>
User</strong> size changed. See the <a href="../layout_guide.html">Layout Guide</a> for mode details 
  on sizes.</p>
<p><strong>IupGLSizeBox</strong> can make the layout to be resized larger than the
<strong>IupGLCanvasBox</strong> size so some controls will be positioned outside the 
box area 
  at right or bottom. In fact this is part of the dynamic layout default reposition of controls inside the 
box. See 
  the <strong>IupRefresh</strong> function. The IUP layout does not have a maximum limit only a minimum, 
except if you use the MAXSIZE common attribute.</p>

<p>The box can be created with no elements and be dynamic filled using
  <a href="../func/iupappend.html">IupAppend</a> or
<a href="../func/iupinsert.html">IupInsert</a>.</p>


<h3><a name="Examples">Examples</a></h3>
<p><a href="../../examples/">Browse for Example Files</a></p>

</body>

</html>
